package com.serviceImpl;

import com.dao.SectionDao;
import com.model.Section;
import com.service.SectionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/8/31.
 */
@Service
public class SectionServiceImpl implements SectionService{
    @Resource
    private SectionDao sectionDao;

    @Override
    public List<Section> getSectionList(Section section) {
        return sectionDao.getSectionList(section);
    }

    @Override
    public int insertSection(Section section) {
        return sectionDao.insertSection(section);
    }

    @Override
    public int modifySection(Section section) {
        return sectionDao.modifySection(section);
    }

    @Override
    public int changeStatus(Section section) {
        return sectionDao.changeStatus(section);
    }

    @Override
    public int deleteSection(Section section) {
        return sectionDao.deleteSection(section);
    }

    @Override
    public int checkExist(Section section) {
        return sectionDao.checkExist(section);
    }

    @Override
    public List<Section> getAllSections() {
        return sectionDao.getAllSections();
    }

    @Override
    public String getSectionNameById(Section section) {
        return sectionDao.getSectionNameById(section);
    }
}
